Page({
  data: {},
  onLoad() {},
  onShow() {
    const tabBar = this.getTabBar && this.getTabBar();
    if (tabBar && typeof tabBar.setSelected === 'function') {
      tabBar.setSelected(0);
    }
  },
  onTapLevel(e) {
    const level = e.currentTarget.dataset.level;
    wx.showToast({ title: `进入关卡${level}`, icon: 'none' });
  }
});


